import {ajax,base} from './config'

//变电站类型，参数：departId
export const getSubTypes = params => { return ajax.getMinData({url:`${base}/bsSubstationController/getSubTypes.do`,params}) };
//地图添加变电站标注，参数->sbId：
export const getStationIcon = params => { return ajax.getMinData({url:`${base}/api/task/getTaskCountOfSbId.do`,params}) };
//地图添加任务标注，参数->longitude:经度,latitude:纬度,departId:部门Id
export const getTaskIcon = params => { return ajax.getMinData({url:`${base}/api/map/getTaskList.do`,params}) };
//地图添加人员标注，参数
export const getWorkerIcon = params => { return ajax.getMinData({url:`${base}/api/map/getWorkerList.do`,params}) };
//人员打点
export const getWorkerListSum = params => {return ajax.getMinData({url:`${base}/api/map/getWorkerListSum.do`,params})};
// /api/map.do?getSubList 
export const getSubList = params => {return ajax.getMinData({url:`${base}/bsSubstationController/getList.do`,params})};
//任务打点
export const getTaskListSum = params => {return ajax.getMinData({url:`${base}/api/map/getTaskListSum.do`,params})};